<style>
    .top_action input,.top_action select{
        margin-bottom: 10px;
        width:140px;
    }
</style>

<div class="main-content">
    <div class="left-panel"></div>
    <div class="panel">
  
        <div class="content">
            <div class="title">
                <h2 class="t1">Search android app data</h2>
            </div>
            <?php  echo $this->session->flash(); ?>
            <form action="<?php echo $this->Html->url("/DataParamBs/admin_sms");?>" id="table-list-admin-form" method="post" <?php if(!empty($dataPramaB)){ ?> style="overflow-x:scroll" <?php }?>>
                <div class="top_action">

                    <br/>
                    <input type="text" value="<?php echo (isset($custum_name))?$custum_name:''?>" class="searh_input" placeholder="Custumer name" id="input-search" name="custum_name" onchange="this.form.submit()"/>
                     <select name="area" class="searh_select" onchange="this.form.submit()">
					 
                    <option value="">Please select a area code</option>
					<?php foreach($areas as $ar){?>
						<option value="<?php echo $ar["AreaCode"]["name_area"];?>" <?php echo (isset($area)&&$ar["AreaCode"]["name_area"]==$area)?'selected="selected"':''?>><?php echo $ar["AreaCode"]["name_area"];?></option>
					<?php }?>
                    </select>
                     <select name="pin_code" class="searh_select" onchange="this.form.submit()">
                    <option value="">Please select a pin code</option>
					<?php foreach($pincodes as $pin){?>
					
                    <option value="<?php echo $pin["PinCode"]["pin_name"]?>" <?php echo (isset($pin_code) && $pin_code==$pin["PinCode"]["pin_name"])?'selected="selected"':''?>><?php echo $pin["PinCode"]["pin_name"]?></option>
					<?php }?>
                    </select>                   
                     <select name="network_operation" class="searh_select" onchange="this.form.submit()">
                    <option value="">Please select a network operator</option>
                    <option value="Airter" <?php echo (isset($network_operation)&& $network_operation=='Airter')?'selected="selected"':''?>>Airter</option>
                    <option value="Aircer" <?php echo (isset($network_operation)&& $network_operation=='Aircer')?'selected="selected"':''?>>Aircer</option>
                    <option value="BSNL" <?php echo (isset($network_operation)&& $network_operation=='BSNL')?'selected="selected"':''?>>BSNL</option>
                    <option value="Idea" <?php echo (isset($network_operation)&& $network_operation=='Idea')?'selected="selected"':''?>>Idea</option>
                    <option value="MTNL" <?php echo (isset($network_operation)&& $network_operation=='MTNL')?'selected="selected"':''?>>MTNL</option>
                    <option value="Vodafone" <?php echo (isset($network_operation)&& $network_operation=='Vodafone')?'selected="selected"':''?>>Vodafone</option>

                    </select>
                    
                    
                    
                    <input type="text" value="<?php echo (isset($longitude))?$longitude:'';?>"  class="searh_input" placeholder="Longitude  " id="input-search" name="longitude" onchange="this.form.submit()"/>
                    <input type="text" value="<?php echo (isset($latitude))?$latitude:'';?>"  class="searh_input" placeholder="Latitude " id="input-search" name="latitude" onchange="this.form.submit()"/>
                    <input type="text" value="<?php echo (isset($rr_number))?$rr_number:'';?>"  class="searh_input" placeholder="RR Number" id="input-search" name="rr_number" onchange="this.form.submit()"/>
                    <input type="text" value="<?php echo (isset($account_id))?$account_id:'';?>"  class="searh_input" placeholder="Account ID" id="input-search" name="account_id" onchange="this.form.submit()"/>
                    <input type="text" value="<?php echo (isset($phone_number))?$phone_number:'';?>"  class="searh_input" placeholder="Phone number" id="input-search" name="phone_number" onchange="this.form.submit()"/>
                    <select name="landmark" class="searh_select">
                    <option value="">Please choose a remark</option>
                    <option value="HT installation"  <?php echo (isset($landmarkn)&& $landmark=='HT installation')?'selected="selected"':''?>>HT installation</option>
                    <option value="Above 40HP installation"  <?php echo (isset($landmark)&& $landmark=='Above 40HP installation')?'selected="selected"':''?>>Above 40HP installation</option>
                    <option value="New Service"  <?php echo (isset($landmark)&& $landmark=='New Service')?'selected="selected"':''?>>New Service</option>
                    <option value="Long Disconnected"  <?php echo (isset($landmark)&& $landmark=='Long Disconnected')?'selected="selected"':''?>>Long Disconnected</option>

                    </select>
                    
                    

                    <br/>
                    <a class="btnsearch" id="btnSearch">
                        <span>Search</span>
                    </a>

                   

                </div>
              
                <br/>
                <?php if(!empty($dataPramaBs)){ ?>
                <div style="height:500px;width:50%;overflow-y:scroll;display:block;border: 1px solid #DAD3D3;">
                <table cellspacing="0" cellpadding="0" class="display" id="table-list-admin" style="width:100%;float:left;height:100px;">
                    <thead>
                        <tr >
                           
                            <th >
                                <a href="" class="full">Full Name</a>
                            </th>
 <th >
                                <a href="" class="full">Phone</a>
                            </th>

                           
                        </tr>
                    </thead>
                    <tbody>
                        <?php $i=1; foreach ($dataPramaBs as $k=>$dataPrama ) {?>
                        <tr>
                           
                            
                            <td><?php echo h($dataPrama['DataParamB']['full_name']); ?>&nbsp;</td>

                            <td><?php echo h($dataPrama['DataParamB']['phone_number']); ?>&nbsp;</td>
                            
                        </tr>
                        <?php } ?>

                    </tbody>
                </table>
                </div>
            
                <?php }
                    else{
                        echo "No result";
                    }
                ?>
                <br />
                   <div style="clear:both">&nbsp;</div>
                   <textarea class="searh_input" style="width:50%;height:200px;padding:10px;" cols="100" rows="200" placeholder="Enter your sms here"></textarea>
                      <br />
                     <a class="btnsubmit" id="btnsubmit">
                        <span>Submit</span>
                    </a>
            </form>
            
           

        </div>
    </div>
    <div class="right-panel"></div>
    <!-- main.end -->
</div>
<script>
$(".page-far-left").click(function() {

    window.location.href = document.getElementById('prev').href;
});
$(".page-far-right").click(function() {

    window.location.href = document.getElementById('next').href;
});
$('#btnSearch').click(function() {
    $('#table-list-admin-form').submit();
});
</script>